package com.swpu.cbg.cnshop.adapter;

import android.content.Context;

import com.swpu.cbg.cnshop.R;
import com.swpu.cbg.cnshop.bean.CatagoryLeftBean;

import java.util.List;

/**
 * Created by chenboge on 16/2/10.
 */
public class CatagoryLeftAdapter<T> extends BaseAdapter<T, BaseViewHolder> {
    public CatagoryLeftAdapter(Context mContext, List<T> mDatas, int itemViewID) {
        super(mContext, mDatas, itemViewID);
    }

    @Override
    void bindData(BaseViewHolder holder, int position) {
        holder.getTextView(R.id.id_catagory_left_view).setText(((CatagoryLeftBean)mDatas.get(position)).getName());
    }
}
